/* 首页内容样式 */

/* banner */
/* 版心区域的背景 */
.banner {
    height: 500px;
    background-color: #f5f5f5;
}

/* 版心的大小 */
.banner .wrapper {
    position: relative;
    height: 500px;
    background-color: orange;
    /* 溢出隐藏 */
    overflow: hidden;
}

/* 轮播图图片 */
.banner .pic {
    /* 横着排列 */
    display: flex;
  /* 
    因为版心设置是宽度时1240，
    所以占不下，改称三张图片的大小 */
    width: 3720px;
}

.banner .wrapper .pic img  {
    height: 500px;
    width: 1240px;
}

/* 侧导航 */
.subnav {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 500px;
    background-color: rgba(0, 0, 0, 0.42);;
}

/* 侧导航的选项 */
.subnav li {
    display: flex;
    justify-content: space-between;
    padding: 0 12px 0 30px ;
    height: 50px;
    /* background-color: orange; */
    line-height: 50px;
    color: #fff;

    cursor: pointer;
}

/* 每个选项的字号和外边距 */
.subnav li a {
    margin-right: 5px;
    font-size: 14px;
    color: #fff;
}

/* 第一个字要变大 */
.subnav li a .classify {
    margin-right: 14px;
    font-size: 16px;
}

/* 调整小箭头 */
.subnav li .iconfont {
    font-size: 14px;
}

/* 鼠标悬停，背景为绿色 */
.subnav li:hover {
    background-color: #00be9c;
}

/* 圆点指示器 */
.banner ol {
    display: flex;
    position: absolute;
    bottom: 17px;
    right: 16px;
}

/* 大点 */
.banner ol li {
    margin-left: 8px;
    width: 22px;
    height: 22px;
    /* background-color: orange; */
    border-radius: 50%;
    cursor: pointer;
}

/* 小点 */
.banner ol li div {
    margin: 4px;
    width: 14px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

/* 选中，半透明白色背景 */
.banner ol .current {
    background-color: rgba(255, 255, 255, 0.5);
}

/* 选中的小点为纯白 */
.banner ol .current div {
    background-color: #fff;
}

/* 新鲜好物 */
/* 标题 - 公共部分 */
.title {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 30px;
    height: 42px;
    /* background-color: orange; */
}

.title .left {
    display: flex;
}

.title .left h3 {
    margin-right: 30px;
    font-size: 35px;
}


.title .left p {
    align-self: flex-end;
    color: #A1A1A1;
}

.title .right .more {
    line-height: 42px;
    color: #A1A1A1;
}

.title .right .more .iconfont {
    margin-left: 10px;
}

/* 好物 -- 公共样式 */
.bd ul {
    display: flex;
    justify-content: space-between;
}

.bd li {
    width: 304px;
    height: 404px;
    background-color: #EEF9F4;
}

.bd li .pic img {
    width: 304px;
    height: 304px;
}

.bd li .txt {
    text-align: center;
}

.bd li h4 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 20px;
}

.goods .bd p {
    font-size: 18px;
    color: #AA2113;
}

.goods .bd p span {
    margin-right: 3px;
    font-size: 22px;
}

/* 人气推荐部分 */
.recommend .bd li {
    background-color: #fff;
}

.recommend .bd p {
    color: #a1a1a1;
}

/* 热门品牌 */
.brand {
    margin-top: 60px;
    height: 468px;
    background-color: #F5F5F5;
}

.brand .wrapper {
    overflow: hidden;
    height: 468px;
    /* background-color: orange; */
}

.brand .title {
    position: relative;
    margin-bottom: 40px;
}

.brand .button {
    position: absolute;
    right: 0;
    bottom: -25px;

    /* 让 a 在一行生效，且变成弹性盒子使宽高生效 */
    display: flex;

}

/* 右边箭头 */
.brand .button a {
    margin-left: 12px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    color: #fff;
}

.brand .button .prev {
    background-color: #ddd;
}

.brand .button .next {
    background-color: #00be9a;
}

/* 热门品牌-图片大小 */
.brand .bd li {
    width: 244px;
    height: 306px;
}

.brand .bd li img {
    width: 244px;
    height: 306px;
}

/* 生鲜部分 */
.fresh .title {
    margin-top: 60px;
    margin-bottom: 20px;
}

.title .right {
    display: flex;
}

.title .right ul {
    display: flex;
    margin-top: 10px;
    margin-right: 58px;
}

.title .right ul a {
    display: block;
    margin-right: 6px;
    padding: 0 7px 0 7px;
    height: 20px;
    line-height: 20px;
    /* background-color: orange; */

}

.title .right ul .active {
    background-color: #00be9a;
    color: #fff;
}


/* 生鲜部分 */
.content {
    display: flex;
    justify-content: space-between;
}

.content .left {
    width: 248px;
    height: 610px;
    /* background-color: orange; */
}

.content .left img {
    width: 248px;
    height: 610px;
}

.content .right {
    width: 968px;
    height: 610px;
    /* background-color: orange; */
}

.content .right ul {
    display: flex;
    flex-wrap: wrap;
}

.content .right li {
    position: relative;
    padding: 10px 21px 0;
    width: 242px;
    height: 305px;
    border: 2px solid #fff;

    /* 使默认的绿色部分隐藏 */
    overflow: hidden;
}

/* 生鲜-产品内容 */
.content .pic {
    width: 200px;
    height: 180px;
}

.content .pic img {
    width: 200px;
    height: 180px;
}
.content .txt .info {
    margin: 14px 0 5px 0;
    height: 60px;
    line-height: 19px;
}

.content .price {
    color: #AF2F22;
}

.content .price span {
    margin-left: 5px;
    font-size: 22px;
}

.content li .cover {
    position: absolute;
    padding-top: 15px;
    /* bottom: 0; */
    bottom: -86px;
    left: 0;
    width: 242px;
    height: 84px;
    background-color: #00be9a;
    text-align: center;
    color: #fff;

    transition: all 0.5s;
}

.content .cover p:nth-child(1) {
    font-size: 18px;
}

.content .cover p:nth-child(2) {
    margin: 3px auto 6px;
    width: 120px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.11);
}
.content .cover p:nth-child(3) {
    font-size: 13px;
}

.content .cover p:nth-child(3) .iconfont {
    font-size: 14px;
}

/* 鼠标悬停时，绿色部分显露出来 */
.content .right li:hover .cover {
    bottom: 0;
}

.content .right li:hover {
    border: 2px solid #00be9a;
}

/* 最新专题 */
.topic {
    margin-bottom: 40px;
}

.topic .title {
    margin-top: 100px;
}

.topic-bd ul {
    display: flex;
    justify-content: space-between;
}

/* 最新专题的每一项 */
.topic-bd li {
    width: 405px;
    height: 355px;
    /* background-color: orange; */
}

/* 图片 */
.topic-bd .pic {
    position: relative;
    width: 405px;
    height: 288px;
}

.topic-bd .pic img {
    width: 405px;
    height: 288px;
}


.topic-bd .txt {
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    
    /* 侧轴设置居中 */
    align-items: center;
    width: 405px;
    height: 67px;
    /* background-color: skyblue; */

    font-size: 14px;
    color: #666;
}

.topic-bd .txt .left {
    display: flex;
}

.topic-bd .txt .left p {
    margin-right: 20px;
}

.topic-bd .txt .left p:nth-child(1) i {
    color: #AA2113;
}

.topic-bd .cover {
    position: absolute;   
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    left: 0;
    bottom: 0;
    width: 405px;
    height: 90px;
    background-image: linear-gradient(180deg,rgba(137,137,137,0.00) 0%,rgba(0,0,0,0.90) 100%) ;
}

.topic-bd .cover .left {
    color: #fff;
}

.topic-bd .cover .left h4 {
    margin-bottom: 4px;
    font-size: 20px;
}

.topic-bd .cover .right {
    padding: 0 7px;
    height: 25px;
    background-color: #fff;
    color: #AA2113;
    font-size: 15px;
}

.topic-bd .cover .right span {
    font-size: 18px;
}